//
//  CycleScrollView.h
//  QuantGroup
//
//  Created by SongWentong on 15/2/3.
//  Copyright (c) 2015年 Spritekit. All rights reserved.
//
#import <UIKit/UIKit.h>

/** pageControl 位置 */
typedef NS_ENUM(NSInteger, pageLocation) {
    pageCenter = 0,
    pageLeft,
    pageRight
};

@class WTCycleScrollView;

//数据源
@protocol WTCycleScrollViewDataSource <NSObject>
-(NSInteger)numberOfViewInCycleScrollView:(WTCycleScrollView*)view;
-(UIView*)cycleScrollView:(WTCycleScrollView*)view viewForIndex:(NSInteger)index;
@end

//点击事件
@protocol WTCycleScrollViewDelegate <NSObject>
@optional
-(void)wtCycleScrollView:(WTCycleScrollView*)view didPressWithIndex:(NSInteger)index;
@end

//可循环的scrollview
@interface WTCycleScrollView : UIView
@property (weak, nonatomic) id <WTCycleScrollViewDataSource> dataSource;
@property (weak, nonatomic) id <WTCycleScrollViewDelegate> delegate;
@property (strong, nonatomic) UIPageControl *myPageConrol;
@property (assign, nonatomic) pageLocation pageType;

-(void)reloadData;

@end
